<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div id="app">
      <h3>条件渲染</h3>
      <!-- v-if指令用于控制一个元素是否显示 -->
      <!-- v-if里面写的是变量或者表达式 -->
      <p v-if="show === 4">hello vue4!</p>
      <p v-if="show === 5">hello vue5!</p>
      <p v-if="show === 6">hello vue6!</p>
    </div>

    <script src="../Vue.js"></script>
    <script>
      const vm = new Vue({
        el: "#app",
        data: {
          show: 5,
        },
      });
    </script>
  </body>
</html>
